/**
 * Copyright 2011 Mathieu Magnaudet
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU Lesser General Public License for more details.
 *
 *  You should have received a copy of the GNU Lesser General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
package edu.enac.geoapp.wims.model;

import java.util.ArrayList;
import java.util.List;

/**
 * Simple bean encapsulating a weather product
 * @author mathieu
 *
 */
public class WeatherProduct {
	private ProductType productType;
	private String originatingCentre;
	private String scale;
	private String issuedTime;
	private List<ForecastSet> forecastSetList;
	

	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		StringBuffer buffer = new StringBuffer("WeatherProduct [productType=" + productType
				+ ", originatingCentre=" + originatingCentre + ", scale="
				+ scale + ", issuedTime=" + issuedTime + ", number of forecastSets=" + forecastSetList.size() + "]");
		return buffer.toString();
	}

	public WeatherProduct() {
		forecastSetList = new ArrayList<ForecastSet>();
	}

	

	/**
	 * @return the productType
	 */
	public ProductType getProductType() {
		return productType;
	}

	/**
	 * @param productType the productType to set
	 */
	public void setProductType(ProductType productType) {
		this.productType = productType;
	}

	/**
	 * @return the originCenter
	 */
	public String getOriginatingCentre() {
		return originatingCentre;
	}

	/**
	 * @param originCenter the originCenter to set
	 */
	public void setOriginatingCentre(String centre) {
		this.originatingCentre = centre;
	}

	/**
	 * @return the scale
	 */
	public String getScale() {
		return scale;
	}

	/**
	 * @param scale the scale to set
	 */
	public void setScale(String scale) {
		this.scale = scale;
	}

	public void setForecastSetList(List<ForecastSet> forecastSetList) {
		this.forecastSetList = forecastSetList;
	}

	public List<ForecastSet> getForecastSetList() {
		return forecastSetList;
	}

	public void setIssuedTime(String issuedTime) {
		this.issuedTime = issuedTime;
	}

	public String getIssuedTime() {
		return issuedTime;
	}

	public void addForecastSet(ForecastSet forecastSet) {
		forecastSetList.add(forecastSet);
	}

	
}
